package com.cn.bean;


import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

@Repository(value = "cal")
public class Calculator implements cal{

    @Override
    public int add(int a, int b){
        return a+b;
    }
    @Override
    public int sub(int a,int b){
        return a-b;
    }
    @Override
    public int mul(int a,int b){
        return a*b;
    }
    @Override
    public int div(int a,int b){
        return a/b;
    }
}
